﻿using System.GunSystem;
using QFramework;

namespace Command
{
    public class PickGunCommand : AbstractCommand
    {
        private readonly int _bulletInGun;
        private readonly int _bulletOutGun;
        private readonly string _name;

        public PickGunCommand(string name, int bulletInGun, int bulletOutGun)
        {
            _name = name;
            _bulletInGun = bulletInGun;
            _bulletOutGun = bulletOutGun;
        }

        protected override void OnExecute()
        {
            this.GetSystem<IGunSystem>().PickGun(_name, _bulletInGun, _bulletOutGun);
        }
    }
}